<?php
header("Content-Type:text/html;charset=utf-8");
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.col-lg-3{width:120px;}
.col-lg-3 img{width:100%;}
.col-lg-6 input{height:35px;}
</style>
<div style="width: 100%;height:100%;">
<div class="site-login" style="margin:auto;margin-top:100px;width:500px;">
    
    <div class="row" >
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

                <?= $form->field($model, 'username') ?>

                <?= $form->field($model, 'password')->passwordInput() ?>
                
                <?= $form->field($model, 'rememberMe')->checkbox() ?>

                <div class="form-group">
                   <center> <?= Html::submitButton('登录', ['class' => 'btn btn-primary green', 'name' => 'login-button']) ?></center>
                </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
</div>
